import hyRequest from '@/service'

export const reqAddOrEditQuestion = (isAdd: boolean, params: any) => {
  return hyRequest[isAdd ? 'post' : 'put']({
    url: `/questionInfo`,
    data: params,
    isShowMessage: true
  })
}
